package com.study.service;

import com.study.dao.CityPaymentItemDao;
import com.study.dao.PaymentItemDao;
import com.study.entity.social_security.CityPaymentItem;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author wfw
 * @Date 2020/08/01 17:01
 */
@Service
public class PaymentItemService {

    @Autowired
    private PaymentItemDao paymentItemDao;

    @Autowired
    private CityPaymentItemDao cityPaymentItemDao;

    /**
     * 根据城市id获取参保项目
     * @param id    城市id
     * @return  城市对应获取参保项目
     */
    public List<CityPaymentItem> findAllByCityId(String id) {
        return cityPaymentItemDao.findAllByCityId(id);
    }

}
